package com.yfp.system.mapper;

import com.yfp.common.datascope.annotation.DataScope;
import com.yfp.system.api.domain.SysDeptCity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 部门城市
 *
 * @CreateDate: 2024/11/7 13:57
 * @UpdateUser:
 * @UpdateDate: 2024/11/7 13:57
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
@Mapper
public interface SysDeptCityMapper {

    /**
     * 根据部门ID查询
     * @param deptId
     * @return
     */
    List<SysDeptCity> findByDeptId(Long deptId);

    /**
     * 批量增加
     * @param deptCityList
     */
    void adds(@Param("deptCityList") List<SysDeptCity> deptCityList);

    /**
     * 根据部门ID删除
     * @param deptId
     */
    void delByDeptId(Long deptId);

    /**
     * 查询城市名称
     * @param roleIds
     * @return
     */
    List<String> findCityNameByRoleIds(List<Long> roleIds);

    /**
     * 查询运营城市
     * @return
     */
    List<String> findCityName(SysDeptCity sysDeptCity);
}
